<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页滚图</title>
   <link href="${basePath}/admin/css/base.css" type="text/css" rel="stylesheet">
</head>
<body>
	
<div id="container" style="background:#f2ffe3 url(${basePath}/admin/images/main_00.jpg) left top repeat-x;">
     <h3 style="height:30px;">
     	<a class="button_60" href="${basePath}/admin/slide/view">添加新纪录</a>
     </h3>
                注：首页默认显示6张滚图
     <table class="dataTable">
         <tr align="left">
	         <th>ID</th>
	         <th>标题</th>
	         <th>跳转连接</th>
	         <th>图片路径</th>
	         <th>发布时间</th>
	         <th>排序号</th>
	         <th>是否禁用</th>
	         <th>操作</th>
          </tr>
          <#list slides.list as s>
	          <tr>
		          <td>${s.id!}</td>
		          <td>${s.name!}</td>
		          <td>${s.href!}</td>
		          <td><#if s.image_path??><a href="${basePath}${s.image_path!}" target="_blank">查看</a><#else>暂无</#if></td>
		          <td>${s.create_time?string('yyyy-MM-dd HH:mm:ss')}</td>
		          <td>${s.sort_id!}</td>
		          <td>${s.disable!}</td>
		          <td>
		          	<a href="${basePath}/admin/slide/view?id=${s.id!}">修改</a>
		          	<#if s.disable == -1>
		          		<a href="${basePath}/admin/slide/disable?id=${s.id!}" onclick="return confirm('你确认要禁用这条记录?')">禁用</a>
		          	<#else>
		          		<a href="${basePath}/admin/slide/renew?id=${s.id!}" onclick="return confirm('你确认要解禁这条记录?')">解禁</a>
		          	</#if>
		          	<a href="${basePath}/admin/slide/delete?id=${s.id!}" onclick="return confirm('你确认要删除这条记录?')">删除</a>
		          </td>
	          </tr>
          </#list>
   	</table>
   	
   	<#include "${basePath}/admin/common/_paginate.html" />
   	<@paginate currentPage = slides.pageNumber totalPage = slides.totalPage actionUrl = "/admin/slide/index" />
</div>
</body>
</html>